package com.bosssoft.g4.service.impl;

import com.bosssoft.g4.dto.SubSystemDTO;
import com.bosssoft.g4.mapper.SubSystemMapper;
import com.bosssoft.g4.service.SubSystemService;
import lombok.extern.slf4j.Slf4j;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * @author Baiye959
 */
@Slf4j
@Service
public class SubSystemServiceImpl implements SubSystemService {
    @Autowired
    private SubSystemMapper subSystemMapper;

    @Override
    public List<SubSystemDTO> getSubSystemList(){
        if (subSystemMapper == null) {
            log.error("subSystemMapper is null");
        }
//        // todo: 添加角色信息
//        SubSystem subSystem = new SubSystem();
//        return subSystemMapper.getSubSystemList(subSystem);
        List<SubSystemDTO> subSystemList = subSystemMapper.getSubSystemList();
        log.info("subSystemList: " + subSystemList);
        return subSystemList;
    }
}
